<div id="content"><div id="news"><!--begin news block--><?php$URL=Yii::app()->request->baseUrl;foreach( $news1 as $key){	echo"<div id='news-id'>";	echo"<div class='news-img'><img src=".$URL."/images/news/".$key->img."></div>";		echo"<h2 class='title'>".$key->title."</h2>";	echo "<p>".$key->text."</p>";	echo"</div>";}?></div><!--end news block--><div id="right">	<div id="type-news">	<?php		foreach( $type as $key)		{			echo $key->id_type.'<br>';			echo $key->type.'<br>';		}	?>	</div></div></div>